package day03;

/**
赋值运算符演示
 */
public class OperDemo4 {
    public static void main(String[] args) {
        //赋值运算符+=，-=，/=,*=,%=
        int a=5;
        a+=3;
        System.out.println(a);//8
        a-=a+2;
        System.out.println(a);//-2
        a/=a;
        System.out.println(a);//1
        a*=a;
        System.out.println(a);//1
        a%=a;
        System.out.println(a);//0
    }
}
